﻿
namespace EasyStep.TestExecution.Interfaces
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
using EasyStep.Data.Entities;
    using EasyStep.TestExecution.Data;
    using EasyStep.Business.Interfaces;
    


    public interface ITestHistoryManager
    {
        ITestDataContext DataContext { get; set; }
        IEnumerable<string> GetAllProjects();
        IEnumerable<string> GetProjectTests(string projectName);        
        IEnumerable<string> GetTestResults(string projectName,string testName);
        IEnumerable<KeyValuePair<string, IEnumerable<TestStepResult>>> GetTestResultBrowsers(string projectName, string testName, string resultName, bool quick = true);
        IEnumerable<TestStepResult> GetTestResultSteps(string projectName, string testName, string executionName, string forBroserName, bool quick = true);
        

        TestStepResult SaveResult(string projectName, string testName, string executionName, TestStepResult data);
        
        string  Convert(TestStepResult data);
        TestStepResult Convert(string data, bool quick=false);



        
    }
}
